<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<form class="form-inline" name="add" id="add" action="<?php echo $this->input->server('REQUEST_URI'); ?>" method="post">
<input type="hidden" name="procId" id="procId" value="<?=$procData['id']?>">
<input type="hidden" name="year" id="year" value="<?=$procData['year']?>">
<input type="hidden" name="timeUnit" id="timeUnit" value="<?=$procData['timeUnit']?>">
<?php $this->load->view('CommonBudget/storeBasic');?>
<div class="text-center">
<button type="submit" class="btn btn-default btn-primary">下一步</button>
</div>
</form>
<script type="text/javascript">
$(function(){
  initValidation();
  loadCarshowLevel(<?=isset($projectData['level']) ? $projectData['level'] : 0?>);
});
//初始化验证
function initValidation(){
  $('form[name="add"]').find("input,select,textarea").jqBootstrapValidation("destroy");
  $('form[name="add"]').find("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
      preventSubmit:false,
      submitSuccess: function (form, event) {
           event.preventDefault();
           ajaxFormSubmit('add');
       },
       submitError: function (form, event, errors) {
         event.preventDefault();
         }
    });
}
</script>
<?php $this->load->view('common/foot');?>